/**
 *  <pre>	
 *  Project Name:dang .</br>
 *  File: Action.java .</br>
 *  Package Name:org.tarena.dang.action.user .</br>
 *  Date      Author       Changes .</br>
 *  2017年3月31日   zhangjianbao     Create  .</br>
 *  Description: .</br>
 *  Copyright 2014-2015 YINGXIANG FINANCE Services Co.,Ltd. All rights reserved..</br>
 *  <pre>	
 */
package org.tarena.dang.action.user;

import org.tarena.dang.action.BaseAction;

public class Action extends BaseAction {
  private String code;
  private boolean ok = false;
  
  public String execute(){
    
    System.out.println(code+"  正在验证...");
    String scode = (String) session.get("code");
    if(code.equalsIgnoreCase(scode)){
      ok = true;
      System.out.println("  验证ok  可以使用");
    }else{
      ok = false;
      System.out.println("  验证fail  用户已存在");
    }
    return "success";
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public boolean isOk() {
    return ok;
  }

  public void setOk(boolean ok) {
    this.ok = ok;
  }
  
  
}